package com.xnx3.wangmarket.plugin.tcdnAutoGenerate.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * tcdn
 */
@Entity
@Table(name = "plugin_tcdn")
public class Tcdn implements java.io.Serializable {

	/**
	 * 是否启用，true：1  启用
	 */
	public static final Short ISUSE_TRUE = 1;
	/**
	 * 是否启用，false：0  不启用
	 */
	public static final Short ISUSE_FALSE = 0;
	
	
	private Integer siteid;		//对应网站的id，主键
	private Short isUse;	//是否启用，当前网站是否使用在线客服功能，默认为0，不启用。  1为启用
	private String url; //生成整站后自动请求的url,格式如 http://xxxxx.com/xxxxx/generate.json?xxx=xx  如果为空则是不启用
	
	@Id
	@Column(name = "siteid", unique = true, nullable = false)
	public Integer getSiteid() {
		return this.siteid;
	}

	public void setSiteid(Integer siteid) {
		this.siteid = siteid;
	}
	
	@Column(name = "is_use", columnDefinition="tinyint(2) comment '是否启用，当前网站是否使用在线客服功能，默认为0，不启用。  1为启用'")
	public Short getIsUse() {
		return isUse;
	}
	
	public void setIsUse(Short isUse) {
		this.isUse = isUse;
	}
	
	
	@Column(name = "url", columnDefinition="char(200) comment '生成整站后自动请求的url,格式如 http://xxxxx.com/xxxxx/generate.json?xxx=xx  如果为空则是不启用'")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "KefuZuoxi [siteid=" + siteid + ", isUse=" + isUse + ", url=" + url 
				+ "]";
	}
	
}